package com.wyl.clinic.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 医生排班表
 * </p>
 *
 * @author wangyulong
 * @since 2024-02-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DoctorWork对象", description="医生排班表")
public class DoctorWork implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "医生id")
    private Integer doctorId;

    @ApiModelProperty(value = "医生")
    @TableField(exist = false)
    private String doctorName;
    @ApiModelProperty(value = "职位")
    @TableField(exist = false)
    private String position;
    @ApiModelProperty(value = "年龄")
    @TableField(exist = false)
    private Integer age;
    @TableField(exist = false)
    private String departmentName;
    @TableField(exist = false)
    private Integer departmentId;

    @ApiModelProperty(value = "出诊时间")
    private LocalDate workDate;

    @ApiModelProperty(value = "出诊时段上午下午")
    private String workTime;

    @ApiModelProperty(value = "初始数量")
    private Integer quantity;
    @ApiModelProperty(value = "剩余量")
    @TableField(exist = false)
    private Integer residue;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}
